/**
 * Creates a new Exception object.
 * This class is similar to the standard Javascript Error Class.
 *
 * @param name		The exception's name.
 * @param message	The exception's message.
 */
function Exception(name, message)
{
	this.name		= null;	// Exception's name
	this.message	= null;	// Exception's message


    if (name)
    {
        this.name = name;
    }
    if (message)
    {
        this.message = message;
    }


	/**
	 * Sets the name of the exception.
	 *
	 * @param name		The exception's name.
	 */
	this.setName	= function(name)
	{
	    this.name = name;
	}

	/**
	 * Gets the exception's name.
	 */
	this.getName	= function()
	{
	    return this.name;
	}

	/**
	 * Sets the exception's message.
	 *
	 * @param message	The exception's message.
	 */
	this.setMessage	= function(message)
	{
	    this.message = message;
	}

	/**
	 * Get the exception's message.
	 */
	this.getMessage	= function()
	{
	    return (this.message);
	}
}
